package com.gitee.ice1938.module.admin.app.manage.appbasetype;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort.Order;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * AppBaseTypeServiceImpl
 * 
 * 
 * @author ice1938@qq.com 2019-11-28 14:48:48
 *
 */
@Service
@Transactional
public class AppBaseTypeServiceImpl implements AppBaseTypeService {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = LoggerFactory.getLogger(AppBaseTypeServiceImpl.class);

	@Autowired
	private AppBaseTypeRepository appBaseTypeRepository;

	@Override
	public Page<AppBaseTypeEntity> findAppBaseTypeData(Map<String, Object> param, Pageable pageable, Order order) {
		// TODO Auto-generated method stub
		return appBaseTypeRepository.findData(param, pageable, order);
	}

	@Override
	public int insertAppBaseType(AppBaseTypeEntity data, String userLoginName) {
		// TODO Auto-generated method stub
		return appBaseTypeRepository.insert(data, userLoginName);
	}

	@Override
	public int updateAppBaseType(AppBaseTypeEntity data, String userLoginName) {
		return appBaseTypeRepository.update(data, userLoginName);
	}

	@Override
	public int deleteAppBaseTypeByIds(List<String> ids) {
		return appBaseTypeRepository.delete(ids);
	}

}
